﻿using UnityEngine;
using UnityEngine.EventSystems;  
using DG.Tweening;
using UnityEngine.UI;
public class UIButton : MonoBehaviour,IPointerDownHandler,IPointerUpHandler {
	public void OnPointerDown(PointerEventData eventData)  
	{
		Image image = gameObject.GetComponent<Image>();
		image.rectTransform.DOScale (0.9f, 0.1f);
	}
	public void OnPointerUp(PointerEventData eventData)  
	{
		Image image = gameObject.GetComponent<Image>();
		image.rectTransform.DOScale (1f, 0.1f);
	}  
}
